<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>events</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1>tag: events</h1><ul><li>
<a name="MX_EVENT"><code>MX_EVENT</code></a>
<p>
<p><b>Event types  </b><p>
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name=" define mx_event(o,t,d,l)"><code># define mx_event(o,t,d,l)</code></a>
<p>
<p><b>Send an event</b><p>
This macro sends an event to an object.  
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name=" define mx_eventmatch(e,o)"><code># define mx_eventmatch(e,o)</code></a>
<p>
<p><b>Check if two events match with type and destination</b><p>
This macro is useful in window event handler to recognize events for
different objects.  
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="typedef void (*MX_HANDLER) (struct MX_WIN* win);"><code>typedef void (*MX_HANDLER) (struct MX_WIN* win);</code></a>
<p>
<p><b>Event handler</b><p>
Functions of this type are assoctaied with windows.  These functions process
all events bieng passed to all objects within the window.  
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="void mx_win_handler(MX_WIN* win)"><code>void mx_win_handler(MX_WIN* win)</code></a>
<p>
<p><b>The default window handler function  </b><p>
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>
!The default window handler  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="void mx_default_handler(void)"><code>void mx_default_handler(void)</code></a>
<p>
<p><b>The default window handler function  </b><p>
(<a href="../include/depui/corepui.h">../include/depui/corepui.h</a>)<br>
!The default window handler  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)

<p>If any object of a window is pressed, the window is brought to the top.   
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)

<p>This function passes the event to the desination object.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="unsigned int mx_emit(MX_EVENT event, const void* data, unsigned int datalen)"><code>unsigned int mx_emit(MX_EVENT event, const void* data, unsigned int datalen)</code></a>
<p>
<p><b>Emit an event to parent object</b><p>
This function informs the current objects parent of an event.  This is
indended for very local communication.  This is used between scrollbars (MX_SLIDER) 
and scrollabale areas (MX_SCROLL) to indicate movement of the scrollbar.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="unsigned int mx_inform(MX_EVENT event, const void* data, unsigned int datalen)"><code>unsigned int mx_inform(MX_EVENT event, const void* data, unsigned int datalen)</code></a>
<p>
<p><b>Inform parent window of event</b><p>
This function passes an event to a parent window of the object/window
currently handling an event.  This is intended for child windows to pass
events to thier parents without explicitly knowing who thier parent are.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<a name="void mx_answer(unsigned int answer)"><code>void mx_answer(unsigned int answer)</code></a>
<p>
<p><b>Set the answer to an event</b><p>
This function sets the return value of the event.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)

<p>This function does not force an end to event handling, you have to do that
        by returning from the event handler.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)

<p>If this function is called twice during the handling of the event then
        the first return value is forgotten and the last one is used.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
<li>
<p>MX_EXPOSE events dont get passed to
        the window handler.  Instead they go directly to the object class
        function.  
(<a href="../include/depui/corepui.c">../include/depui/corepui.c</a>)<br>(library <a href="depui.htm">depui</a> : module <a href="depui_corepui.htm">corepui</a>)
<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:26 2007


</body></html>
